package com.x.epspace.entity;

import java.io.Serializable;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.mongodb.morphia.annotations.*;
import org.mongodb.morphia.utils.*;

/**
 * 绑定企业，一个手机号可绑定多个企业，一个手机号绑定的企业不能重复
 * @author xiajiangge
 *
 */
@Entity("bindent")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_EMPTY)
@Indexes( 
		{
			@Index(fields={@Field("regUser"),@Field("szch")},options=@IndexOptions(unique=true)),
			@Index(fields={@Field(value="bindTime",type=IndexType.ASC)})
		}
) 
public class BindEnt extends BaseEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -229134514276110639L;
	/**
	 * 注册用户
	 * 
	 */
	@Reference(lazy=true)
	private RegUser regUser;
	
	/**
	 * 企业注册号
	 */
	private String szch;
	
	/**
	 * 企业名称
	 */
	private String sqymc;
	
	/**
	 * 企业内部序号
	 */
	private String snbxh;
	
	/**
	 * 身份类型  "zrrgd":自然人股东  "jggd"：机构股东  "zy"：公司职员
	 * 
	 */
	private String identType;
	
	/**
	 * 身份对象
	 */
	private IdentObj identObj;
	
	/**
	 * 身份状态 1:有效 0：无效
	 */
	private String identStatus;
	
	/**
	 * 绑定时间
	 */
	private Long bindTime;
	
	/**
	 * 绑定档案查询身份
	 */
	private BindPaper bindPaper;
	
	/**
	 * 是否短信提醒
	 */
	private String isShortMsg = "0";
	
	/**
	 * 是否微信提醒
	 */
	private String isWxMsg = "1";
	
	public String getSzch() {
		return szch;
	}

	public void setSzch(String szch) {
		this.szch = szch;
	}

	public String getSqymc() {
		return sqymc;
	}

	public void setSqymc(String sqymc) {
		this.sqymc = sqymc;
	}

	public String getSnbxh() {
		return snbxh;
	}

	public void setSnbxh(String snbxh) {
		this.snbxh = snbxh;
	}

	public String getIdentType() {
		return identType;
	}

	public void setIdentType(String identType) {
		this.identType = identType;
	}

	public IdentObj getIdentObj() {
		return identObj;
	}

	public void setIdentObj(IdentObj identObj) {
		this.identObj = identObj;
	}

	public String getIdentStatus() {
		return identStatus;
	}

	public void setIdentStatus(String identStatus) {
		this.identStatus = identStatus;
	}

	public Long getBindTime() {
		return bindTime;
	}

	public void setBindTime(Long bindTime) {
		this.bindTime = bindTime;
	}

	public RegUser getRegUser() {
		return regUser;
	}

	public void setRegUser(RegUser regUser) {
		this.regUser = regUser;
	}

	public BindPaper getBindPaper() {
		return bindPaper;
	}

	public void setBindPaper(BindPaper bindPaper) {
		this.bindPaper = bindPaper;
	}

	public String getIsShortMsg() {
		return isShortMsg;
	}

	public void setIsShortMsg(String isShortMsg) {
		this.isShortMsg = isShortMsg;
	}

	public String getIsWxMsg() {
		return isWxMsg;
	}

	public void setIsWxMsg(String isWxMsg) {
		this.isWxMsg = isWxMsg;
	}
	
}
